package com.gx.auth.controllers;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.gx.auth.service.LoginInterfaceService;
import com.gx.auth.service.impl.LoginInterfaceImplService;

@Controller
@RequestMapping("/login")
public class LoginController {
	@RequestMapping("/authcode.do")
	public void authCode(HttpServletRequest request,HttpServletResponse response){
		LoginInterfaceService lfs = new LoginInterfaceImplService();
		lfs.getVerificationCode(request, response);
	}
	
	@RequestMapping("/login.do")
	public void login(HttpServletRequest request,HttpServletResponse response,HttpSession session){
		LoginInterfaceService lfs = new LoginInterfaceImplService();
		lfs.loginCheck(request, response, session);
	}
	
}
